package com.yqg.education.mapper;

import com.yqg.education.entity.Course;
import com.yqg.education.entity.Exampaper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yqg.education.entity.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxf
 * @since 2025-04-16
 */
@Mapper
public interface ExampaperMapper extends BaseMapper<Exampaper> {
    List<Exampaper> findPageAdmin(Integer pageNum, Integer pageSize,String courseName);
    Long findCountAdmin(String courseName);
    List<Exampaper> findPage(Integer pageNum, Integer pageSize, String username, Integer trainClassId, Integer courseId, Integer isPass, Integer stuId);

    Long findCount(String username, Integer trainClassId, Integer courseId, Integer isPass, Integer stuId);

    List<Long> getIdByCourseId(@Param("courseId") Long courseId);

    List<Question> findQuestionByExampaperId(@Param("exampaperId") Long exampaperId);
}


